package cn.com.bianguo.java.plugindemo.main.config;

import org.pf4j.DefaultPluginManager;
import org.pf4j.PluginManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.nio.file.Paths;

@Configuration
public class PluginConfiguration {

    @Bean
    public PluginManager pluginManager() {
        return new DefaultPluginManager(Paths.get("D:\\plugins"));
    }
}
